package cn.edu.sdjzu.xg.bysj.domain;

import java.io.Serializable;

public class Teacher implements Comparable<Teacher>, Serializable {
    private Integer id;
    private String name;
    //private String no;
    private Department department;
    //private Integer department_id;


//    public cn.edu.sdjzu.xg.bysj.domain.Teacher(Integer id, String name, String no,cn.edu.sdjzu.xg.bysj.domain.Department department) {
//        this.id = id;
//        this.name = name;
//        this.no = no;
//        this.department = department;
//    }


    public Teacher(Integer id, String name, Department department) {
        this.id = id;
        this.name = name;
        this.department = department;
    }




    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

//    public String getNo() {
//        return no;
//    }

//    public Integer getDepartment_id(){
//        return department_id;
//    }

    public Department getDepartment() {
        return department;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public String toString() {
        String TAB = "    ";
        String retValue = "";
        String var10000 = super.toString();
        retValue = "cn.edu.sdjzu.xg.bysj.domain.Teacher ( " + var10000 + "    id = " + this.id + "    name = " + this.name + "    department = " + this.department + "   )";
        return retValue;
    }

    @Override
    public int compareTo(Teacher o) {
        return this.id - o.getId();
    }

}

